package com.haydn.practice.restfulweb.entity;

import java.util.Date;

/**
 * @Author haydn
 * @create 2020/8/29 22:38
 * 商品库存状态封装对象，用于MBean的测试
 */
public class ProductStatus {

    //商品名
    private String ProName;
    //商品数量
    private int ProNum;
    //商品最后更新时间
    private Date proDate;

    //无参构造
    public ProductStatus() {
    }

    //带参构造
    public ProductStatus(String proName, int proNum, Date proDate) {
        ProName = proName;
        ProNum = proNum;
        this.proDate = proDate;
    }

    //重写toString

    @Override
    public String toString() {
        return "ProductStatus{" +
                "ProName='" + ProName + '\'' +
                ", ProNum=" + ProNum +
                ", proDate=" + proDate +
                '}';
    }

    public String getProName() {
        return ProName;
    }

    public void setProName(String proName) {
        ProName = proName;
    }

    public int getProNum() {
        return ProNum;
    }

    public void setProNum(int proNum) {
        ProNum = proNum;
    }

    public Date getProDate() {
        return proDate;
    }

    public void setProDate(Date proDate) {
        this.proDate = proDate;
    }
}
